package com.itheima.String;

/**
 * @Author 王加鑫
 * @Date 2021/4/27 10:31
 * @Version 1.0
 * 理解String类
 */
public class StringTest01 {

    public static void main(String[] args) {

        String s1 = new String();
        System.out.println("s1:"+s1);

        char[] c = {'a','b','c'};
        String s2 = new String(c);
        System.out.println("s2:"+s2);

        String s3 = new String("abc");
        System.out.println("s3:"+s3);

        byte[] b = {97,98,99};
        String s4 = new String(b);
        System.out.println("s4:"+s4);

        String s5 = "abc";
        System.out.println("s5:"+s5);


    }
}
